go/scanner.Scanner.error (method)
21 uses
go/scanner (current package)
scanner.go#L69: s.error(s.offset, "illegal character NUL")
scanner.go#L74: s.error(s.offset, "illegal UTF-8 encoding")
scanner.go#L76: s.error(s.offset, "illegal byte order mark")
scanner.go#L147: func (s *Scanner) error(offs int, msg string) {
scanner.go#L155: s.error(offs, fmt.Sprintf(format, args...))
scanner.go#L203: s.error(offs, "comment not terminated")
scanner.go#L252: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L267: s.error(offs+i2, "invalid column number: "+string(text[i2:]))
scanner.go#L277: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L449: s.error(s.offset, "invalid radix point in "+litname(prefix))
scanner.go#L456: s.error(s.offset, litname(prefix)+" has no digits")
scanner.go#L475: s.error(s.offset, "exponent has no digits")
scanner.go#L478: s.error(s.offset, "hexadecimal mantissa requires a 'p' exponent")
scanner.go#L493: s.error(offs+i, "'_' must separate successive digits")
scanner.go#L581: s.error(offs, msg)
scanner.go#L593: s.error(s.offset, msg)
scanner.go#L602: s.error(offs, "escape sequence is invalid Unicode code point")
scanner.go#L620: s.error(offs, "rune literal not terminated")
scanner.go#L639: s.error(offs, "illegal rune literal")
scanner.go#L652: s.error(offs, "string literal not terminated")
scanner.go#L692: s.error(offs, "raw string literal not terminated")